package de.tum.in.eist.im.shared;


/**
 * This event is used for the case when a user logs in to or logs out of EIST_IM.  
 * 
 * 
 * @author zardosht
 *
 */
public class UserEvent extends AbstractEvent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private User user;
	private boolean login;

	/**
	 * Set login to true in case User has logged in. 
	 * Set login to false in case User has logged out.
	 * @param login
	 */
	public void setLogin(boolean login) {
		this.login = login;
	}

	/**
	 * If true the user has logged in.
	 * If false the user has logged out.
	 * @return
	 */
	public boolean isLogin() {
		return login;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return user;
	}
}
